<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sub Sector List</title>
<%@include file="../common_Admin_imports.jsp"%>
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery-1.11.0.min.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/bootstrap.js " />"></script>

<link href="<c:url value="/resources/css/bootstrap.min.css " />"
	rel="stylesheet" type="text/css" />
<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/resources/css/backend/style.css" />"
	rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">List of sub-sector</div>
						<div class="header_right span4 offset4">
							<div class="input-append">
								<input class="span2" id="appendedInputButtons" type="text" />
								<button class="btn" type="button">Search</button>
							</div>
							<jsp:include page="../common_link.jsp" />
						</div>
					</div>
				</div>

				<div class="row-fluid">
					<div class="main_table">
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>No</th>
									<th>Sub Sector Name</th>
									<th>Ticker</th>
									<th></th>
									<th></th>
								</tr>
							</thead>
							<c:forEach var="subSector" items="${subSectors}">
								<tr>
									<td>${subSector.id}</td>
									<td>${subSector.name}</td>
									<td>${subSector.code}</td>
									<td><div class="btn btn-info">
											<a
												href="${pageContext.request.contextPath}/admin/subsector/edit/${subSector.id}.html">Edit</a>
										</div></td>
									<td><div class="btn btn-danger">
											<a
												lang="${pageContext.request.contextPath}/admin/subsector/delete/${subSector.id}.html"
												href="javascript:void(0);"
												onclick="return confirmAndDelete(this);">Delete</a>
										</div></td>
								</tr>
							</c:forEach>
						</table>
						<div class="btn btn-success">
							<a
								href="${pageContext.request.contextPath}/admin/subsector/add.html">Add</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>